import {Routes} from '@angular/router';

export const routes: Routes = [
  {
    path: 'home',
    loadComponent: () => import('./home/home.page').then((m) => m.HomePage),
  },
  {
    path: 'scan-code',
    loadComponent: () => import('./scan-code/scan-code.page').then((m) => m.ScanPage),
  },
  {
    path: 'send-mail',
    loadComponent: () => import('./send-mail/send-mail.page').then((m) => m.SendMainPage),
  },
  {
    path: 'play-audio',
    loadComponent: () => import('./play-audio/play-audio.page').then((m) => m.PlayAudioPage),
  },
  {
    path: 'device-orientation',
    loadComponent: () => import('./device-orientation/device-orientation.page').then((m) => m.DeviceOrientationPage),
  },
  {
    path: 'ocr',
    loadComponent: () => import('./ocr/ocr.page').then((m) => m.OCRPage),
  },
  {
    path: 'tts',
    loadComponent: () => import('./tts/tts.page').then((m) => m.TTSPage),
  },
  {
    path: '',
    redirectTo: 'home',
    pathMatch: 'full',
  },
];
